package models;

import play.*;
import play.db.jpa.*;

import javax.persistence.*;
import java.util.*;

@Entity
public class Permission extends Model {
	@Lob
	public String description;
	@ManyToMany
	List<Role> allowedRoles;

	public Permission(String description) {
		this.description = description;
		this.allowedRoles = new ArrayList<Role>();
	}
}
